import { createRouter, createWebHashHistory } from 'vue-router'
// 标准版
var routes1 = [
  {
    path: '/',
    name: 'login',
    component: () => import('../views/login/login.vue')
  }, {
    path: '/home',
    name: 'employment',
    component: () => import('../views/employment/index.vue')
  }, {
    path: '/resume',
    name: 'resume',
    component: () => import('../views/resume/createresume.vue')
  }, {
    path: '/employmentdetail',
    name: 'employmentdetail',
    component: () => import('../views/employment/detail.vue')
  },{
    path: '/myresume',
    name: 'myresume',
    component: () => import('../views/resume/myresume.vue')
  }, {
    path: '/deliver',
    name: 'deliver',
    component: () => import('../views/employment/deliver.vue')
  }, {
    path: '/selfassessment',
    name: 'selfassessment',
    component: () => import('../views/baseinfo/selfassessment.vue')
  }, {
    path: '/deliverdetail',
    name: 'deliverdetail',
    component: () => import('../views/employment/deliverdetail.vue')
  }, {
    path: '/info',
    name: 'info',
    component: () => import('../views/baseinfo/index.vue')
  }, {
    path: '/name',
    name: 'name',
    component: () => import('../views/baseinfo/name.vue')
  }, {
    path: '/intention',
    name: 'intention',
    component: () => import('../views/intention/index.vue')
  },
  {
    path: '/language',
    name: 'language',
    component: () => import('../views/intention/language.vue')
  },
  {
    path: '/certificate',
    name: 'certificate',
    component: () => import('../views/intention/certificate.vue')
  },
  {
    path: '/editcert',
    name: 'editcert',
    component: () => import('../views/intention/editcert.vue')
  }, {
    path: '/trade',
    name: 'trade',
    component: () => import('../views/intention/trade.vue')
  },{
    path: '/education',
    name: 'education',
    component: () => import('../views/intention/education.vue')
  },
  {
    path: '/school',
    name: 'school',
    component: () => import('../views/intention/school.vue')
  }, {
    path: '/post',
    name: 'post',
    component: () => import('../views/intention/post.vue')
  },
  {
    path: '/experience',
    name: 'experience',
    component: () => import('../views/intention/experience.vue')
  },
  {
    path: '/work',
    name: 'work',
    component: () => import('../views/intention/work.vue')
  },
  {
    path: '/work1',
    name: 'work1',
    component: () => import('../views/intention/work1.vue')
  },
  {
    path: '/expost',
    name: 'expost',
    component: () => import('../views/intention/expost.vue')
  },
  {
    path: '/extrade',
    name: 'extrade',
    component: () => import('../views/intention/extrade.vue')
  },
]
// 适老版
var routes2 = [
  {
    path: '/oldhome', // 首页
    name: 'oldhome',
    component: () => import('../views/oldhome/home.vue')
  }, {
    path: '/oldresume', // 创建简历（没有简历的时候）
    name: 'oldresume',
    component: () => import('../views/oldresume/index.vue')
  },, {
    path: '/oldhomedetail', // 岗位列表详情
    name: 'oldhomedetail',
    component: () => import('../views/oldhome/detail.vue')
  },{
    path: '/oldmyresume', // 创建简历（有简历的时候）
    name: 'oldmyresume',
    component: () => import('../views/oldresume/myresume.vue')
  }, {
    path: '/olddeliver', // 投递列表
    name: 'olddeliver',
    component: () => import('../views/olddeliver/index.vue')
  }, {
    path: '/oldself', //自我评价
    name: 'oldself',
    component: () => import('../views/oldbase/self.vue')
  }, {
    path: '/olddeliverdetail', // 投递列表详情
    name: 'olddeliverdetail',
    component: () => import('../views/olddeliver/detail.vue')
  }, {
    path: '/oldbase', // 基本信息
    name: 'oldbase',
    component: () => import('../views/oldbase/index.vue')
  }, {
    path: '/oldname', // 基本信息跳转页面输入值
    name: 'oldname',
    component: () => import('../views/oldbase/name.vue')
  }, {
    path: '/oldintention', //求职意向
    name: 'oldintention',
    component: () => import('../views/oldintention/index.vue')
  },
  {
    path: '/oldlanguage', //外语能力
    name: 'oldlanguage',
    component: () => import('../views/oldintention/language.vue')
  },
  {
    path: '/oldskill', // 技能证书
    name: 'oldskill',
    component: () => import('../views/oldintention/oldskill.vue')
  },
  {
    path: '/oldskilledit', // 技能证书跳转页面输入值
    name: 'oldskilledit',
    component: () => import('../views/oldintention/skilledit.vue')
  }, {
    path: '/oldtrade', // 多选期望行业
    name: 'oldtrade',
    component: () => import('../views/oldintention/trade.vue')
  },{
    path: '/oldeducation', // 教育经历
    name: 'oldeducation',
    component: () => import('../views/oldintention/education.vue')
  },
  {
    path: '/oldschool', // 教育经历跳转页面输入值
    name: 'oldschool',
    component: () => import('../views/oldintention/school.vue')
  }, {
    path: '/oldpost', // 多选期望岗位
    name: 'oldpost',
    component: () => import('../views/oldintention/post.vue')
  },
  {
    path: '/oldexperience', // 工作经历
    name: 'oldexperience',
    component: () => import('../views/oldintention/experience.vue')
  },
  {
    path: '/oldwork', // 工作经历跳转页面输入（1）
    name: 'oldwork',
    component: () => import('../views/oldintention/work.vue')
  },
  {
    path: '/oldwork1', // 工作经历跳转页面输入（2）
    name: 'oldwork1',
    component: () => import('../views/oldintention/work1.vue')
  },
  {
    path: '/oldexpost', // 岗位单选
    name: 'oldexpost',
    component: () => import('../views/oldintention/expost.vue')
  },
  {
    path: '/oldextrade', // 行业单选
    name: 'oldextrade',
    component: () => import('../views/oldintention/extrade.vue')
  }
]
var routes = routes1.concat(routes2);
const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
